package com.edu.user.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;
@TableName("users")//映射数据库
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String role;
    private String phone;
    private String name;
    private String email;
    private String gender;
    private LocalDate birthdate;
    private Date createdAt;
    private Date updatedAt;
    @TableField("head_url")
    private String headUrl;

}
